
const Panel = ({ children, label, ...props }: { children: any, label: string }) => {
    return (
        <div style={{
            position: 'relative',
            padding: 24,
            border: '2px dashed #1890ff',
            borderRadius: 8,
            margin: '16px 0'
        }} {...props}>
            <div style={{
                position: 'absolute',
                top: -12,
                left: 20,
                background: '#fff',
                padding: '0 8px',
                color: '#1890ff',
                fontWeight: 'bold'
            }}>
                {label}
            </div>
            {children}
        </div>
    );
};

export default Panel;
